﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone

using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace BlazorAdmin.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class SysInfo
    {
        /// <summary>
        /// 系统名称
        /// </summary>
        [Display(Name = "系统名称")]
        [NotNull]
        public string Name { get; set; }

        /// <summary>
        /// 系统名称（中文）
        /// </summary>
        [Display(Name = "系统名称（中文）")]
        public string CnName { get; set; }

        /// <summary>
        /// 系统描述
        /// </summary>
        [Display(Name = "系统描述")]
        public string Description { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "自动锁屏")]
        public bool AutoLock { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "时长间隔（秒）")]
        [Required(ErrorMessage = "{0}不可为空")]
        public int Interval { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "异常日志（月）")]
        [Required(ErrorMessage = "{0}不可为空")]
        public int ExceptionExpired { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "操作日志（月）")]
        [Required(ErrorMessage = "{0}不可为空")]
        public int OperateExpired { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "操作日志（月）")]
        [Required(ErrorMessage = "{0}不可为空")]
        public int LoginExpired { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "访问日志（月）")]
        [Required(ErrorMessage = "{0}不可为空")]
        public int AccessExpired { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "Cookie（天）")]
        [Required(ErrorMessage = "{0}不可为空")]
        public int CookieExpired { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "IP 缓存（分）")]
        [Required(ErrorMessage = "{0}不可为空")]
        public int IPCacheExpired { get; set; }

    }
}